﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Demo1_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function toQzoneLogin() {
            var win = window.open("qzlogin.aspx?R=" + Math.random(), "TencentLogin", "width=450,height=320,menubar=0,scrollbars=0,resizable=1,status=0,titlebar=0,toolbar=0,location=1");
        }
    </script>
</head>
<body>
    <form id="mainform" runat="server">
    <p>
        用第一个版本登录方式,相对第二个Demo麻烦一些，但比较灵活。</p>
    <ol>
        <li>需要手动写触发登录脚本</li>
        <li>需要编写Login方法</li>
        <li>添加成功和失败调转页面</li>
        <li>配置web.config httpHandlers节点</li>
    </ol>
    </form>
    <p>
        <img src="../Images/logo_style1.png" onclick="toQzoneLogin();" alt="使用QQ帐号登录" /></p>
</body>
</html>
